package com.minelx.autocha;

import org.openqa.selenium.chrome.ChromeOptions;

public interface IWebBrowserFactory {
	IWebBrowser createBrowser();

	static IWebBrowserFactory create(ChromeOptions options) {
		return () -> new WebBrowser(options);
	}

	static ChromeOptions simple() {
		return new ChromeOptions();
	}

	static ChromeOptions headless() {
		ChromeOptions result = new ChromeOptions();
		result.addArguments("--headless");
		return result;
	}
}
